package com.zsj.gulimall.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 排除数据源配置
 * 1开启注册发现
 *     gateway:
 *       routes:
 *         - id: test_route
 *           uri: https://www.baidu.com
 *           predicates:
 *             - Query=url,baidu
 *         - id: qq_route
 *           uri: https://www.qq.com
 *           predicates:
 *             - Query=url,qq
 *
 *        在application.yaml或者properties文件中进行编写
 *        id为取的名字
 *        uri为跳转地址
 *        predicates有很多参数 详解参照官网文档说明
 */
@EnableDiscoveryClient
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class GulimallGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallGatewayApplication.class, args);
    }

}
